<?php
/**
 * User: zhangligang
 * Email: tzhang2450@163.com
 * Date: 2018/7/25
 * Time: 上午6:58
 */

namespace App\Http\Controllers;


use Illuminate\Http\Request;

class TeacherController extends Controller
{

    public function __construct()
    {
        parent::__construct();
    }

    public function fileIndex(Request $request)
    {
        return $this->baseView($request, 'teacher.file.index', ['menu' => 'file', 'sub' => 'index']);
    }

    public function fileEdit(Request $request)
    {
        return $this->baseView($request, 'teacher.file.edit', ['menu' => 'file', 'sub' => 'index']);
    }

    public function programIndex(Request $request)
    {
        return $this->baseView($request, 'teacher.program.index', ['menu' => 'program', 'sub' => 'index']);
    }

    public function programView(Request $request, $id)
    {
        return $this->baseView($request, 'teacher.program.view', ['menu' => 'program', 'sub' => 'index', 'id' => $id]);
    }

    public function apartIndex(Request $request)
    {
        return $this->baseView($request, 'teacher.program.apart', ['menu' => 'program', 'sub' => 'apart']);
    }

    public function contractIndex(Request $request)
    {
        return $this->baseView($request, 'teacher.contract.index', ['menu' => 'contract', 'sub' => 'index']);
    }

    public function contractView(Request $request)
    {
        return $this->baseView($request, 'teacher.contract.view', ['menu' => 'contract', 'sub' => 'index']);
    }

    public function rentIndex(Request $request)
    {
        return $this->baseView($request, 'teacher.rent.index', ['menu' => 'rent', 'sub' => 'index']);
    }

    public function rentView(Request $request)
    {
        return $this->baseView($request, 'teacher.rent.view', ['menu' => 'rent', 'sub' => 'index']);
    }

    public function feeWater(Request $request)
    {
        return $this->baseView($request, 'teacher.fee.water', ['menu' => 'fee', 'sub' => 'water']);
    }

    public function feeElectric(Request $request)
    {
        return $this->baseView($request, 'teacher.fee.electric', ['menu' => 'fee', 'sub' => 'electric']);
    }

    public function feeGas(Request $request)
    {
        return $this->baseView($request, 'teacher.fee.gas', ['menu' => 'fee', 'sub' => 'gas']);
    }

    public function feeView(Request $request)
    {
        return $this->baseView($request, 'teacher.fee.view', ['menu' => 'fee', 'sub' => 'index']);
    }

    public function repairIndex(Request $request)
    {
        return $this->baseView($request, 'teacher.repair.index', ['menu' => 'repair', 'sub' => 'index']);
    }

    public function noticeIndex(Request $request)
    {
        return $this->baseView($request, 'teacher.notice.index', ['menu' => 'notice', 'sub' => 'index']);
    }

    public function noticeView(Request $request, $id)
    {
        return $this->baseView($request, 'teacher.notice.view', ['menu' => 'notice', 'sub' => 'index', 'id' => $id]);
    }

    public function retireIndex(Request $request)
    {
        return $this->baseView($request, 'teacher.retire.index', ['menu' => 'retire', 'sub' => 'index']);
    }
}